﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfAreaDjackVehicleList.aspx.cs" Inherits="msBsc.WebUi.wMall.Seller.wfAreaDjackVehicleList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>地接客车辆</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/jqPlugin/laydate/skins/default/laydate.css" rel="stylesheet" />
    <link href="/jqPlugin/SelectSimu/css/base.css" rel="stylesheet" />
    <link href="/jqPlugin/hdfu/hdfu.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/from.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/pagination.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Seller/sDjackVehicleList.css" rel="stylesheet" />
    <link href="/jqPlugin/layer2/skin/layer.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/usermenu.css" rel="stylesheet" />
</head>
<body>
    <div class="wf_all">
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div class="main-container">
            <div class="sidebar-scroll">
                <%=msBsc.WebUi.Code.QtHtmlGet.GetAgentDjackMenuHtml() %>
            </div>
            <div class="main-Info">
                <div class="tnavigation">
                    <a class="nav" href="#">我的地接客</a>&gt;
				<a class="nav" href="#">车辆管理</a>&gt;
				<a class="nav-on" href="#">车辆列表</a>
                </div>
                <div class="recordNumber">共有出售中的宝贝<span id="carNumber">0</span>条记录</div>
                <div class="main-horizontal">
                    <table class="table">
                        <thead>
                            <tr>
                                <th style="width:20%">车辆图片</th>
                                <th>车辆名称</th>
                                <th style="width:15%">租车价格</th>
                                <th style="width:10%">购买时间</th>
                                <th style="width:10%">车辆状态</th>
                                <th style="width:10%">操作</th>
                            </tr>
                        </thead>
                        <tbody id="carList">
                        </tbody>
                    </table>
                    <xmp id="svc_list_temp_vehicle" style="display: none">
                        {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                            <tr>
                                <td><img src="{{d.rows[i].VEHICLE_DEFAULT_PIC}} 260x155img.jpg" /></td>
                                <td class="craName"><a href="/wp_VehicleInfo.htm?vehicleId={{d.rows[i].VEHICLE_INFO_ID}}">{{d.rows[i].VEHICLE_NAME}}</a></td>
                                <td class='car-price'>￥{{getNumber(d.rows[i].VEHICLE_PRICE_DAY)}}元<p>(起/天)</p></td>
                                <td class='published'>{{formatDate(new Date(d.rows[i].VEHICLE_BUY_TIME),false) }} </td>
                                <td class="{{getStatusColor(d.rows[i].VEHICLE_STATUS)}}" title="{{d.rows[i].VEHICLE_NOPASS_REASON}}">
                                    {{d.rows[i].VEHICLE_STATUS_NAME}}
                                </td>
                                <td class='operating'>
                                    <a  href="javascript:showView('{{d.rows[i].VEHICLE_INFO_ID}}');" >修改日程</a>
                                </td>

                            </tr>
                        {{#} }}
                    </xmp>
                    <div class="jpage" id="divPage"></div>
                </div>
            </div>
        </div>
        <!--start JS引用-->
        <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
        <script src="/jqPlugin/js/jBase.js"></script>
        <script src="/jqPlugin/js/jBPage.js"></script>
        <script src="/jqPlugin/js/laytpl.js"></script>
        <script src="/jqPlugin/laydate/laydate.js"></script>
        <script src="/jqPlugin/layer2/layer.js"></script>

        <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
        <script src="/themes/wStyle1/js/comm/DateInfo.js"></script>
        <script src="/themes/wStyle1/js/comm/jsPagination.js"></script>
        <script src="/jqPlugin/hdfu/hdfu.js"></script>

        <script src="/jqPlugin/SelectSimu/js/SelectSimu.js"></script>
        <script src="/themes/wStyle1/js/comm/jsLayout.js"></script>
        <!--end JS引用-->
        <script type="text/javascript">
            var pIndex = 1;
            var pageSize = 10;
            function btnDo(sEbtn) {
                GtGrid1Action = sEbtn;
                var opart = GetGtParam();
                ajaxComm(opart);
            };
            function showView(vehicleid) {
                layer.open({
                    type: 2,
                    title: '日程设置',
                    skin: 'layui-layer-rim',
                    area: ['800px', '720px'],
                    content: ['/ws_ScheduleModify.html?vehicleId=' + vehicleid, 'no']
                });

            }

            function getStatusColor(status) {
                var st = parseInt(status);
                switch (st) {
                    case 1:
                        return "skin-yellow";
                    case 2:
                        return "skin-greem";
                    case 3:
                        return "skin-price";
                    default:
                        return "";
                }

            }
            function removeVehicle(vehicleId) {
                var opart = new jsonRow();
                opart.AddCell("vehicleId", vehicleId);
                opart.AddCell("ACTION", "removeVehicle");
                ajaxComm(opart);
            }

            function refresh(vehicleId) {
                var opart = new jsonRow();
                opart.AddCell("vehicleId", vehicleId);
                opart.AddCell("ACTION", "RefreshDatetime");
                ajaxComm(opart);
            }

            //执行AJAX调用时获取参数
            function GetGtParam() {
                var _jsParam = new jsonRow();
                _jsParam.AddCell("pIndex", pIndex);
                _jsParam.AddCell("pRows", pageSize);
                _jsParam.AddCell("ACTION", GtGrid1Action);
                return _jsParam;
            };
            btnDo("init");
            function goPage(Index) {
                pIndex = Index;
                btnDo("init");
            }
        </script>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
</body>
</html>
